package pers.gxm.facade;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class Database {
    private Database(){};

    public static Properties getProperties(String dbname){
//        src\\main\\java
        String filename = "src\\main\\resources\\" + dbname + ".txt";
        Properties properties = new Properties();
        try {
            properties.load(new FileInputStream(filename));
        } catch (IOException e) {
            System.out.println("Warning:" + filename + "is not found.");
        }
        return properties;

    }
}
